/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bankapplicationgui;

import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
/**
 *
 * @author harshi
 */
public class ChangePincode extends JFrame implements ActionListener {
    
    JLabel labelCurrentPwd;
    JLabel labelNewPwd1;
    JLabel labelNewPwd2;
    JPasswordField textCurrentPwd;
    JPasswordField textNewPwd1;
    JPasswordField textNewPwd2;
    JButton buttonConfirm;
    JButton buttonExit;
    JPanel panelPincode;
    
    public ChangePincode(){
        
        setTitle("Change Pincode");
        
        GridLayout grid=new GridLayout(4,2);
        panelPincode=new JPanel(grid);
        labelCurrentPwd=new JLabel("Current password:");
        labelNewPwd1=new JLabel("New Password:");
        labelNewPwd2=new JLabel("Confirm:");
        textCurrentPwd=new JPasswordField(5);
        textNewPwd1=new JPasswordField(5);
        textNewPwd2=new JPasswordField(5);
        buttonConfirm=new JButton("Confirm");
        buttonExit=new JButton("Exit");
        
        panelPincode.add(labelCurrentPwd);
        panelPincode.add(textCurrentPwd);
        panelPincode.add(labelNewPwd1);
        panelPincode.add(textNewPwd1);
        panelPincode.add(labelNewPwd2);
        panelPincode.add(textNewPwd2);
        panelPincode.add(buttonConfirm);
        panelPincode.add(buttonExit);
        
        add(panelPincode);
        
        setSize(300,200);
        setVisible(true);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        
        
        
    }
    
    public void actionPerformed(ActionEvent ae){
        
    }
    
}
